<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ include file="../general/header.jsp" %>
		<div id="header">FREE MARKET HOME PAGE</div>
		<%@ include file="../general/menu.jsp" %>
		<h2>Unresponsed Questions</h2>
	<c:forEach var="q" items="${questions}">
	<table style="width:900px; margin: 8px auto; border: 1px solid; border-collapse:collapse;">
		<tr>
			<td colspan="3"><c:out value="${q.item.name}" /></td>
		</tr>
		<tr>
			<th width="100px" rowspan="2"><fmt:formatDate type="date" value="${q.date}" /></th>
			<th width="100px" rowspan="2"><c:out value="${q.user.name}" /></th>
			<td> <c:out value="${q.question}" /> </td>
		</tr>
		<tr>
			<td><a href="../item/answer?questionid=${q.id}">Answer</a></td>
		</tr>	
	</table>
	</c:forEach>
<%@ include file="../general/footer.jsp" %>